#ifndef GUARD_H_
#define GUARD_H_

#include "Lock.h"

class Guard
{
public:
	Guard(Lock& lock):_lock(lock)
	{
		_lock.iLock();
	}
	~Guard()
	{
		_lock.iUnLock();
	}
private:
	Lock&	_lock;
};
#endif